YAML file error - yaml

I keep getting this...
in "<string>", line 1, column 1:
G-4_Cluster:
^
expected <block end>, but found BlockMappingStart
in "<string>", line 221, column 5:
Spawn_Entity_On_Hit:
^
Here's the code.
G-4_Cluster:
Item_Information:
Item_Name: "&eG-4 Cluster Bomb"
Item_Type: 127
Item_Lore: "&eA cluster bomb that releases|&e10 bomblets upon detonation."
Sounds_Acquired: BAT_TAKEOFF-1-1-0
Shooting:
Right_Click_To_Shoot: true
Cancel_Right_Click_Interactions: true
Projectile_Amount: 1
Projectile_Type: grenade
Projectile_Subtype: 127
Projectile_Speed: 12
Sounds_Projectile: EAT-2-1-28,EAT-2-1-32,EAT-2-1-36
Sounds_Shoot: FIRE_IGNITE-2-0-0
Cluster_Bombs:
Enable: true
Bomblet_Type: 351~3
Delay_Before_Split: 40
Number_Of_Splits: 1
Number_Of_Bomblets: 10
Speed_Of_Bomblets: 8
Delay_Before_Detonation: 40
Detonation_Delay_Variation: 10
Particle_Release: BLOCK_BREAK-127
Sounds_Release: BURP-2-1-0
Explosions:
Enable: true
Damage_Multiplier: 25
Explosion_No_Grief: true
Explosion_Radius: 4
Sounds_Explode: ITEM_PICKUP-2-1-0
Extras:
One_Time_Use: true
Putty:
Item_Information:
Item_Name: "&ePutty"
Item_Type: 404
Item_Lore: "&eRemote explosives.|&eRight click to throw.|&eLeft click to detonate."
Sounds_Acquired: BAT_TAKEOFF-1-1-0
Shooting:
Cancel_Left_Click_Block_Damage: true
Cancel_Right_Click_Interactions: true
Explosive_Devices:
Enable: true
Device_Type: itembomb
Device_Info: 2,10,159,159~14
Sounds_Deploy: SHOOT_ARROW-1-0-0
Sounds_Alert_Placer: CLICK-1-1-0
Sounds_Trigger: SHEEP_SHEAR-1-2-0
Explosions:
Enable: true
Explosion_No_Grief: true
Explosion_Radius: 5
Explosion_Delay: 16
Sounds_Explode: ZOMBIE_WOOD-2-0-0
C4:
Item_Information:
Item_Name: "&eC4"
Item_Type: 69
Item_Lore: "&eRemote explosives.|&eRight click to place.|&eLeft click to detonate."
Sounds_Acquired: BAT_TAKEOFF-1-1-0
Shooting:
Cancel_Left_Click_Block_Damage: true
# Ammo:
# Enable: true
# Ammo_Item_ID: 46
# Take_Ammo_Per_Shot: true
Explosive_Devices:
Enable: true
Device_Type: remote
Device_Info: 2-1A-TheStabbyBunny
Sounds_Deploy: CHICKEN_EGG_POP-1-1-0
Message_Disarm: "&eYou have disarmed an explosive device."
Message_Trigger_Placer: "&e<victim> has set off your C4!"
Message_Trigger_Victim: "&eYou have set off <shooter>'s C4!"
Sounds_Alert_Placer: CLICK-1-1-0
Sounds_Trigger: SHEEP_SHEAR-1-1-0
Explosions:
Enable: true
Explosion_No_Grief: true
Explosion_Radius: 6
Explosion_Delay: 16
Sounds_Explode: ZOMBIE_WOOD-2-0-0
# Extras:
# One_Time_Use: true
Airstrike:
Item_Information:
Item_Name: "&eValkrie AirStrike"
Item_Type: 75
Item_Lore: "&eCalls in an airstrike at the|&eposition of the thrown flare."
Sounds_Acquired: BAT_TAKEOFF-1-1-0
Shooting:
Right_Click_To_Shoot: true
Cancel_Right_Click_Interactions: true
Projectile_Amount: 1
Projectile_Type: flare
Projectile_Subtype: 76
Projectile_Speed: 10
Sounds_Shoot: FIRE_IGNITE-2-0-0,FIZZ-2-0-0
Airstrikes:
Enable: true
Flare_Activation_Delay: 60
Particle_Call_Airstrike: smoke
Message_Call_Airstrike: "&eFriendly airstrike on the way."
Block_Type: 144
Area: 5
Distance_Between_Bombs: 4
Height_Dropped: 90
Vertical_Variation: 10
Horizontal_Variation: 30
Multiple_Strikes:
Enable: true
Number_Of_Strikes: 5
Delay_Between_Strikes: 10
Sounds_Airstrike: ENDERMAN_STARE-2-2-0
Explosions:
Enable: true
Explosion_No_Grief: true
Explosion_Radius: 4
Sounds_Explode: ENDERDRAGON_HIT-2-2-0
Extras:
One_Time_Use: true
HGrenade:
Item_Information:
Item_Name: "&eHellFire Grenade"
Item_Type: 402
Item_Lore: "&eExplodes three seconds after launch."
Sounds_Acquired: BAT_TAKEOFF-1-1-0
Shooting:
Right_Click_To_Shoot: true
Cancel_Right_Click_Interactions: true
Delay_Between_Shots: 10
Projectile_Amount: 1
Projectile_Type: grenade
Projectile_Subtype: 46
Projectile_Speed: 10
Sounds_Shoot: SHOOT_ARROW-2-0-0
Explosions:
Enable: true
Explosion_No_Grief: true
Explosion_Radius: 4
Explosion_Delay: 60
Extras:
One_Time_Use: true
Flashbang:
Item_Information:
Item_Name: "&eFlashbang"
Item_Type: 351~8
Item_Lore: "&eDisorientates the target upon detonation."
Sounds_Acquired: BAT_TAKEOFF-1-1-0
Shooting:
Right_Click_To_Shoot: true
Cancel_Right_Click_Interactions: true
Delay_Between_Shots: 10
Projectile_Amount: 1
Projectile_Type: grenade
Projectile_Subtype: 351~8
Projectile_Speed: 10
Sounds_Shoot: SHOOT_ARROW-2-0-0
Explosions:
Enable: true
Explosion_No_Grief: true
Explosion_No_Damage: true
Explosion_Radius: 6
Explosion_Potion_Effect: BLINDNESS-120-1,SLOW-120-1
Explosion_Delay: 20
Sounds_Victim: LEVEL_UP-1-0-0
Sounds_Explode: ANVIL_LAND-2-1-0
Extras:
One_Time_Use: true
SpiderMine:
Item_Information:
Item_Name: "&eSpider Mine"
Item_Type: 343
Item_Lore: "&eAnti-personnel mine.|&eTriggers a fiery explosion when:|&e- walked into by mobs or players|&e- struck with fists or items|&e- shot by projectiles"
Sounds_Acquired: BAT_TAKEOFF-1-1-0
Shooting:
Right_Click_To_Shoot: true
Cancel_Right_Click_Interactions: true
Explosive_Devices:
Enable: true
Device_Type: landmine
Device_Info: 51
Sounds_Deploy: ORB_PICKUP-2-2-0
Message_Trigger_Placer: "&e<victim> has triggered your mine!"
Message_Trigger_Victim: "&eYou have triggered <shooter>'s mine!"
Sounds_Trigger: ITEM_BREAK-2-1-0,ZOMBIE_UNFECT-2-2-0
Explosions:
Enable: true
Ignite_Victims: 120
Explosion_No_Grief: true
Explosion_Radius: 8
Explosion_Delay: 8
Sounds_Explode: FIRE-2-0-0,ZOMBIE_METAL-2-0-0
Extras:
One_Time_Use: true
Broodstrikes:
Enable: true
Flare_Activation_Delay: 60
Particle_Call_Airstrike: smoke
Message_Call_Airstrike: "&eFriendly broodstrike on the way."
Block_Type: 144
Area: 5
Distance_Between_Bombs: 4
Height_Dropped: 90
Vertical_Variation: 10
Horizontal_Variation: 50
Multiple_Strikes:
Enable: true
Number_Of_Strikes: 10
Delay_Between_Strikes: 10
Sounds_Airstrike: ENDERMAN_STARE-2-2-0
Spawn_Entity_On_Hit:
Enable: true
Chance: 100
Mob_Name: "Broodling"
EntityType_Baby_Explode_Amount: silverfish-false-false-2
Make_Entities_Target_Victim: true
Timed_Death: <100>
Entity_Disable_Drops: true
Explosions:
Enable: true
Explosion_No_Grief: true
Explosion_Radius: 2
Sounds_Explode: ENDERDRAGON_HIT-2-2-0
Extras:
One_Time_Use: true
I do not know how to fix this. Please help! It would be very helpful if you told me how this works. Thank you!
This is extra: dddddddddddddfkhjaldgfhalkjhdfalkjhdflkajhflkajdhflkadhfkljahdflkjhadlkfjhalkdjfhlkajhdfkljahdflkjahdfkljhadlfkjhalkdjfhlakshjdfalkdjhfakljdfhlkajhdflkjahdsflkjasdhflkjahdsflkjahdfklhadklfhalkdjfhklajdfhljkahfdlkjahdfslkjahdfkljahsdflkjahdlkfjhaljkdsfhalkjdfhkljafhlkajdhflkjahdflkl
Sorry, I can't post this without the extra...

Your top-level node is a mapping which contains the keys Putty, C4, Airstrike, HGrenade, Flashbang, SpiderMine and Broodstrikes. However, there is "something" before Putty that ought to be a mapping key:value, but which lacks a key.
My guess that you have inadvertedly indented the first line, so that G-4_Cluster is no longer a key in the top-level mapping.

Related

stream load balancing is not working on loki ingester

I'm beginner to loki, and I need some help.
I am running loki-distributed on EKS.
chart version : 0.43.0
loki version : 4.2.4
Log flow is : logstash(4 node) is consuming log from kafka and push the log to Loki's domain. loki domain is connected from AWS ALB ingress
I have 4 ingester pod, and ring status is normal.
image
I thought distributor do load balancing for 4 ingester.
but only 2 ingester was used. and they take too much memory, and oom killed and relaunch. It is never ending..
image
why 2 ingester is idle and never use??
my configuration something wrong?
this is my configuration. could you help me please??
config: |
auth_enabled: false
server:
http_listen_port: 3100
grpc_server_min_time_between_pings: 10s
grpc_server_ping_without_stream_allowed: true
grpc_server_max_recv_msg_size: 104857600
grpc_server_max_send_msg_size: 104857600
distributor:
ring:
kvstore:
store: memberlist
heartbeat_timeout: 30s
memberlist:
join_members:
- loki-memberlist
ingester:
lifecycler:
join_after: 0s
ring:
kvstore:
store: memberlist
replication_factor: 1
chunk_idle_period: 1h
chunk_target_size: 1536000
chunk_block_size: 262144
chunk_encoding: snappy
chunk_retain_period: 1m
max_transfer_retries: 0
autoforget_unhealthy: false
wal:
dir: /var/loki/wal
limits_config:
enforce_metric_name: false
reject_old_samples: true
reject_old_samples_max_age: 168h
max_cache_freshness_per_query: 10m
max_streams_per_user: 0
max_query_length: 720h
max_query_parallelism: 24
max_entries_limit_per_query: 10000
ingestion_burst_size_mb: 32
ingestion_rate_mb: 16
cardinality_limit: 1000000
schema_config:
configs:
- from: "2021-12-24"
store: aws
object_store: s3
schema: v11
index:
prefix: {{ index_name }}
period: 720h
storage_config:
aws:
s3: s3://ap-northeast-2/{{ bucket_name }}
dynamodb:
dynamodb_url: dynamodb://ap-northeast-2
http_config:
response_header_timeout: 5s
boltdb_shipper:
shared_store: s3
active_index_directory: /var/loki/index
cache_location: /var/loki/cache
cache_ttl: 168h
index_gateway_client:
server_address: dns://loki-index-gateway:9095
index_cache_validity: 168h
index_queries_cache_config:
enable_fifocache: true
default_validity: 168h
fifocache:
validity: 168h
chunk_store_config:
max_look_back_period : 0s
chunk_cache_config:
enable_fifocache: true
default_validity: 168h
fifocache:
validity: 168h
table_manager:
retention_deletes_enabled: false
throughput_updates_disabled: false
retention_period: 0
chunk_tables_provisioning:
enable_ondemand_throughput_mode: true
enable_inactive_throughput_on_demand_mode: true
provisioned_write_throughput: 0
provisioned_read_throughput: 0
inactive_write_throughput: 0
inactive_read_throughput: 0
index_tables_provisioning:
enable_ondemand_throughput_mode: true
enable_inactive_throughput_on_demand_mode: true
provisioned_write_throughput: 0
provisioned_read_throughput: 0
inactive_write_throughput: 0
inactive_read_throughput: 0
querier:
query_timeout: 5m
query_ingesters_within: 1h
engine:
timeout: 5m
query_range:
align_queries_with_step: true
max_retries: 5
split_queries_by_interval: 10m
cache_results: true
align_queries_with_step: true
parallelise_shardable_queries: true
results_cache:
cache:
enable_fifocache: true
default_validity: 168h
fifocache:
validity: 168h
frontend_worker:
frontend_address: loki-query-frontend:9095
#scheduler_address: loki-scheduler:9095
grpc_client_config:
max_recv_msg_size: 104857600
max_send_msg_size: 104857600
match_max_concurrent: false
parallelism: 8
frontend:
log_queries_longer_than: 1m
compress_responses: true
tail_proxy_url: http://loki-querier:3100
#scheduler_address: loki-scheduler:9095
compactor:
shared_store: filesystem
ruler:
enable_api: true
storage:
type: s3
s3:
s3: s3://ap-northeast-2/{{ rule-bucket-name }}
rule_path: /tmp/loki/scratch
alertmanager_url: http://alertmanager:9093

Grails Oracle specific DB properties

I want to set the properties connection_property_default_lob_prefetch_size for an oracle DB connection.
Here is how I did it in JAVA. Now I want to do it in grails.
Properties p = new Properties(2);
String rowPrefetch = "1000";
String lobPrefetch = "40000000";
p.setProperty(OracleConnection.CONNECTION_PROPERTY_DEFAULT_ROW_PREFETCH, rowPrefetch);
p.setProperty(OracleConnection.CONNECTION_PROPERTY_DEFAULT_LOB_PREFETCH_SIZE, lobPrefetch);
ds.setConnectionProperties(p);
I tried to set it in the application.yml but it does not look like it is picking it up.
dataSource:
dbCreate: none
url: jdbc:oracle:thin:#1.1.1.1:1521:mydb
properties:
jmxEnabled: true
initialSize: 3
maxActive: 10
minIdle: 3
maxIdle: 7
maxWait: 10000
maxAge: 600000
timeBetweenEvictionRunsMillis: 5000
minEvictableIdleTimeMillis: 60000
validationQuery: SELECT 1 from dual
validationQueryTimeout: 15
validationInterval: 15000
testOnBorrow: true
testWhileIdle: true
testOnReturn: false
jdbcInterceptors: ConnectionState
defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED
dbProperties:
connection_property_default_lob_prefetch_size: 40000000
I updated the config to look like this, but still nothing.
dbCreate: none
url: jdbc:oracle:thin:#1.1.1.1:1521:mydb
properties:
jmxEnabled: true
initialSize: 3
maxActive: 10
minIdle: 3
maxIdle: 7
maxWait: 10000
maxAge: 600000
timeBetweenEvictionRunsMillis: 5000
minEvictableIdleTimeMillis: 60000
validationQuery: SELECT 1 from dual
validationQueryTimeout: 15
validationInterval: 15000
testOnBorrow: true
testWhileIdle: true
testOnReturn: false
jdbcInterceptors: ConnectionState
defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED
dbProperties:
defaultLobPrefetchSize: 500000000
I am testing this my taking the injected dataSource unwrapping the OracleConnection and creating a OracleCallableStatement from it. The value coming in is 32768.
I am using ojdbc11.jar from oracle.

Trying to understand why curl calls are slow on codeigniter app

Previous note: I'm a Windows dev, to please bear with me since this is seems to be a Linux issue.
We're having some issues with a PHP app (which was built with codeigniter, I believe). The app is hosted on Ubuntun 16.04 Server (Apache) and I think it's using PHP 7.4.
The issue: the controllers which return the html shown by the browser call a couple of web services (which are hosted on a server that is on the same network) and these call are slow (each takes amore than 1 second to complete).
We've noticed this because we installed and enabled XDebug on both servers. For our test scenario (which envolves loading 2 or 3 pages), we've ended up with the following:
The main portal log file shows that curl_exec required around 32 seconds for performing around 25 calls
The services log files shows that it only run for about 2 second (for loading and returning the data consumed by the curl calls)
Since it looked like there were some issue with the network stack, we've activated wireshark and it looks like each web service call is taking more than one second to complete (so, it seems to confirm the xdebug logs that pointed to a communication issue). For instance, here's a screenshot of one of those calls:
It seems like the ACK for the 1st application data is taking more than one second (RTT time is over 1 second). This does not happen with the following ack (for instance, 122 entry is an ack for 121 and in this case the rtt is about 0.0002 seconds). Btw, here's the info that is shown for the application data entry that is being ack after 1 second:
Frame 116: 470 bytes on wire (3760 bits), 470 bytes captured (3760 bits)
Encapsulation type: Ethernet (1)
Arrival Time: Jul 7, 2020 15:46:23.036999000 GMT Daylight Time
[Time shift for this packet: 0.000000000 seconds]
Epoch Time: 1594133183.036999000 seconds
[Time delta from previous captured frame: 0.000405000 seconds]
[Time delta from previous displayed frame: 0.000405000 seconds]
[Time since reference or first frame: 3.854565000 seconds]
Frame Number: 116
Frame Length: 470 bytes (3760 bits)
Capture Length: 470 bytes (3760 bits)
[Frame is marked: False]
[Frame is ignored: False]
[Protocols in frame: eth:ethertype:ip:tcp:tls]
[Coloring Rule Name: TCP]
[Coloring Rule String: tcp]
Ethernet II, Src: Microsof_15:5a:5e (00:15:5d:15:5a:5e), Dst: Fortinet_09:03:22 (00:09:0f:09:03:22)
Destination: Fortinet_09:03:22 (00:09:0f:09:03:22)
Address: Fortinet_09:03:22 (00:09:0f:09:03:22)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Source: Microsof_15:5a:5e (00:15:5d:15:5a:5e)
Address: Microsof_15:5a:5e (00:15:5d:15:5a:5e)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Type: IPv4 (0x0800)
Internet Protocol Version 4, Src: 10.50.100.28, Dst: 10.50.110.100
0100 .... = Version: 4
.... 0101 = Header Length: 20 bytes (5)
Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT)
0000 00.. = Differentiated Services Codepoint: Default (0)
.... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
Total Length: 456
Identification: 0x459c (17820)
Flags: 0x4000, Don't fragment
0... .... .... .... = Reserved bit: Not set
.1.. .... .... .... = Don't fragment: Set
..0. .... .... .... = More fragments: Not set
...0 0000 0000 0000 = Fragment offset: 0
Time to live: 64
Protocol: TCP (6)
Header checksum: 0x0cb0 [validation disabled]
[Header checksum status: Unverified]
Source: 10.50.100.28
Destination: 10.50.110.100
Transmission Control Protocol, Src Port: 34588, Dst Port: 443, Seq: 644, Ack: 5359, Len: 404
Source Port: 34588
Destination Port: 443
[Stream index: 5]
[TCP Segment Len: 404]
Sequence number: 644 (relative sequence number)
[Next sequence number: 1048 (relative sequence number)]
Acknowledgment number: 5359 (relative ack number)
1000 .... = Header Length: 32 bytes (8)
Flags: 0x018 (PSH, ACK)
000. .... .... = Reserved: Not set
...0 .... .... = Nonce: Not set
.... 0... .... = Congestion Window Reduced (CWR): Not set
.... .0.. .... = ECN-Echo: Not set
.... ..0. .... = Urgent: Not set
.... ...1 .... = Acknowledgment: Set
.... .... 1... = Push: Set
.... .... .0.. = Reset: Not set
.... .... ..0. = Syn: Not set
.... .... ...0 = Fin: Not set
[TCP Flags: ·······AP···]
Window size value: 319
[Calculated window size: 40832]
[Window size scaling factor: 128]
Checksum: 0x8850 [unverified]
[Checksum Status: Unverified]
Urgent pointer: 0
Options: (12 bytes), No-Operation (NOP), No-Operation (NOP), Timestamps
TCP Option - No-Operation (NOP)
Kind: No-Operation (1)
TCP Option - No-Operation (NOP)
Kind: No-Operation (1)
TCP Option - Timestamps: TSval 1446266633, TSecr 1807771224
Kind: Time Stamp Option (8)
Length: 10
Timestamp value: 1446266633
Timestamp echo reply: 1807771224
[SEQ/ACK analysis]
[This is an ACK to the segment in frame: 115]
[The RTT to ACK the segment was: 0.000405000 seconds]
[iRTT: 0.000474000 seconds]
[Bytes in flight: 404]
[Bytes sent since last PSH flag: 404]
[Timestamps]
[Time since first frame in this TCP stream: 0.010560000 seconds]
[Time since previous frame in this TCP stream: 0.000405000 seconds]
TCP payload (404 bytes)
Transport Layer Security
TLSv1.2 Record Layer: Application Data Protocol: http-over-tls
Content Type: Application Data (23)
Version: TLS 1.2 (0x0303)
Length: 399
Encrypted Application Data: 6611c266b7d32e17367b99607d0a0607f61149d15bcb135d…
Any tips on what's going on?
Thanks.

Edit yaml objects in array with yq. Speed up Terminalizer's terminal cast (record)

The goal: Speed up Terminalizer's terminal cast (record)
I have a record of terminal created with Terminalizer. cast.yaml:
# The configurations that used for the recording, feel free to edit them
config:
# do not touch it
# Records, feel free to edit them
records:
- delay: 841
content: "\e]1337;RemoteHost=kyb#kyb-nuc\a\e]1337;CurrentDir=/home/kyb/devel/git-rev-label\a\e]1337;ShellIntegrationVersion=7;shell=fish\a"
- delay: 19
content: "\e]1337;RemoteHost=kyb#kyb-nuc\a\e]1337;CurrentDir=/home/kyb/devel/git-rev-label\a\e]0;fish /home/kyb/devel/git-rev-label\a\e[30m\e(B\e[m"
- delay: 6
content: "\e[?2004h"
- delay: 28
content: "\e]0;fish /home/kyb/devel/git-rev-label\a\e[30m\e(B\e[m\e[2m⏎\e(B\e[m \r⏎ \r\e[K\e]133;D;0\a\e]133;A\a\e[44m\e[30m ~/d/git-rev-label \e[42m\e[34m \e[42m\e[30m demo \e[30m\e(B\e[m\e[32m \e[30m\e(B\e[m\e]133;B\a\e[K"
- delay: 1202
content: "#\b\e[38;2;231;197;71m#\e[30m\e(B\e[m"
- delay: 134
content: "\e[38;2;231;197;71m#\e[30m\e(B\e[m"
- delay: 489
content: "\e[38;2;231;197;71m \e[30m\e(B\e[m"
- delay: 318
I want to speed up payback without passing --speed-factor to terminalizer play. To do so delays should be decreased.
So, I need to create yq-expression to make delays lower
.records.delay=.records.delay/3
but this expression won't work. Please help to write proper one.
.records is an array, so you could use this filter:
.records |= map(.delay /= 3)
Or you might prefer:
.records[].delay |= (. /= 3)

Configuring Sass Lint for BEM

So i'm moving to writing my sass to the BEM convention. I've used the sass-lint configuration generator to create my config and only edited the class-name-format's - convention: to strictbem however I'm still having some issues with it.
Maybe I'm misinterpreting BEM?
Error:
[sass-lint] Class '.bus__tyre--front' should be written in BEM (Block
Element Modifier) format (class-name-format)
<element class="bus__tyre--front">
Sass:
.bus {
position: relative;
&__tyre {
position: absolute;
&--front {
bottom: -22px;
right: 3%;
width: 17%;
}
}
}
sass-lint.yml:
# sass-lint config generated by make-sass-lint-config v0.1.2
#
# The following scss-lint Linters are not yet supported by sass-lint:
# DisableLinterReason, ElsePlacement, PropertyCount, SelectorDepth
# SpaceAroundOperator, TrailingWhitespace, UnnecessaryParentReference, Compass::*
#
# The following settings/values are unsupported by sass-lint:
# Linter Indentation, option "allow_non_nested_indentation"
# Linter Indentation, option "character"
# Linter NestingDepth, option "ignore_parent_selectors"
# Linter PropertySortOrder, option "min_properties"
# Linter PropertySortOrder, option "separate_groups"
# Linter SpaceBeforeBrace, option "allow_single_line_padding"
# Linter VendorPrefix, option "identifier_list"
files:
include: '**/*.scss'
options:
formatter: stylish
merge-default-rules: false
rules:
bem-depth:
- 0
- max-depth: 1
border-zero:
- 1
- convention: zero
brace-style:
- 1
- allow-single-line: true
class-name-format:
- 1
- convention: strictbem
clean-import-paths:
- 1
- filename-extension: false
leading-underscore: false
empty-line-between-blocks:
- 1
- ignore-single-line-rulesets: true
extends-before-declarations: 1
extends-before-mixins: 1
final-newline:
- 1
- include: true
force-attribute-nesting: 1
force-element-nesting: 1
force-pseudo-nesting: 1
function-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
hex-length:
- 1
- style: short
hex-notation:
- 1
- style: lowercase
id-name-format:
- 1
- convention: hyphenatedlowercase
indentation:
- 1
- size: 2
leading-zero:
- 1
- include: false
mixin-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
mixins-before-declarations: 1
nesting-depth:
- 1
- max-depth: 3
no-color-keywords: 1
no-color-literals: 1
no-css-comments: 1
no-debug: 1
no-duplicate-properties: 1
no-empty-rulesets: 1
no-extends: 0
no-ids: 1
no-important: 1
no-invalid-hex: 1
no-mergeable-selectors: 1
no-misspelled-properties:
- 1
- extra-properties: []
no-qualifying-elements:
- 1
- allow-element-with-attribute: false
allow-element-with-class: false
allow-element-with-id: false
no-trailing-zero: 1
no-transition-all: 0
no-url-protocols: 1
no-vendor-prefixes:
- 1
- additional-identifiers: []
excluded-identifiers: []
placeholder-in-extend: 1
placeholder-name-format:
- 1
- convention: hyphenatedlowercase
property-sort-order:
- 1
- ignore-custom-properties: false
property-units:
- 1
- global:
- ch
- em
- ex
- rem
- cm
- in
- mm
- pc
- pt
- px
- q
- vh
- vw
- vmin
- vmax
- deg
- grad
- rad
- turn
- ms
- s
- Hz
- kHz
- dpi
- dpcm
- dppx
- '%'
per-property: {}
quotes:
- 1
- style: single
shorthand-values:
- 1
- allowed-shorthands:
- 1
- 2
- 3
single-line-per-selector: 1
space-after-bang:
- 1
- include: false
space-after-colon:
- 1
- include: true
space-after-comma:
- 1
- include: true
space-before-bang:
- 1
- include: true
space-before-brace:
- 1
- include: true
space-before-colon: 1
space-between-parens:
- 1
- include: false
trailing-semicolon: 1
url-quotes: 1
variable-for-property:
- 0
- properties: []
variable-name-format:
- 1
- allow-leading-underscore: true
convention: hyphenatedlowercase
zero-unit: 1
Judging by #335 and #319 in the scss-lint repo, it looks like you need to change:
class-name-format:
- 1
- convention: strictbem
to:
class-name-format:
- 1
- convention: hyphenatedbem
I hope that helps!
Instead of hyphenated_BEM it should be hyphenatedbem.
Example from the sass-lint docs

Resources